package com.eastfair.venueservice.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eastfair.boot.request.PageParams;
import com.eastfair.boot.service.SuperService;
import com.eastfair.venueservice.dto.ServiceCategoryDTO;
import com.eastfair.venueservice.dto.ServiceCategoryPageQuery;
import com.eastfair.venueservice.dto.ServiceCategorySaveDTO;
import com.eastfair.venueservice.dto.ServiceCategoryUpdateDTO;
import com.eastfair.venueservice.entity.ServiceCategory;
import com.eastfair.venueservice.vo.ServiceCategoryVO;

import java.util.List;

/**
 * <p>
 * 业务接口
 * 服务分类
 * </p>
 *
 * @author lyw
 * @date 2022-07-13
 */
public interface ServiceCategoryService extends SuperService<ServiceCategory> {

    /**
     * 查询服务分类列表分页
     * @param params
     * @return
     */
    Page<ServiceCategoryVO> queryServiceCategoryList(PageParams<ServiceCategoryPageQuery> params);

    /**
     * 查询服务分类列表分
     * @param categoryType
     * @return
     */
    List<ServiceCategoryVO> getCategoryListByExhibitionManageId(Integer categoryType,Long exhibitionManageId);


    List<ServiceCategoryVO> getCategoryList(Integer categoryType);

    /**
     * 保存服务分类
     * @param serviceCategoryDTO
     * @return
     */
    Boolean saveServiceCategoryInfo(ServiceCategoryDTO serviceCategoryDTO);

    /**
     * 修改服务分类
     * @param serviceCategoryDTO
     * @return
     */
    Boolean updateServiceCategoryById( ServiceCategoryDTO serviceCategoryDTO);

    /**
     * 删除服务分类
     * @param id
     * @return
     */
    Boolean delServiceCategoryById(Long id);

    /**
     * 查询服务分类列表
     * @param ids ids
     * @return List<ServiceCategoryVO>
     */
    List<ServiceCategoryVO> getCategoryListByIds(List<Long> ids);
}
